module.exports = {
  pages: {
    index: {
      // 入口
      entry: 'src/main.js'
    }
  },
  lintOnSave: false,
  devServer: {
    proxy: {
        '/api': {
            // target: 'https://interface.sina.cn/news/wap/fymap2020_data.d.json',//后端接口地址
            // target: 'https://route.showapi.com/2217-2',
            target: 'https://route.showapi.com/2217-2?showapi_appid=951975.0&showapi_timestamp=20220330090412&showapi_sign=b39a64fbc5e54221938719f2becc2737',
            pathRewrite: {
              '^/api': ''//重写,
            },
            changeOrigin: true//是否允许跨越
        }
    }
  }
}